﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WmsApp.WmsService
{
    public partial class ExtendInvoiceBill : IWcfState
    {
        public string InvoiceBillStateDesc
        {
            get
            {
                if (PayCompleteAmount > 0)
                {
                    if (this.AmountTax - this.PayCompleteAmount > 0)
                    {
                        return "部分付款";
                    }
                    else if (this.AmountTax - this.PayCompleteAmount == 0)
                    {
                        return "全部已付款";
                    }
                    return "未知状态";
                }
                else
                {
                    return "未付款";
                }
            }
        }
    }
}
